<?php
final class Controller_Server extends Controller_Security{
    protected function Acquiescent(){
        $sys_info_array = array ();
        $sys_info_array ['gmt_time'] = gmdate ( "Y年m月d日 H:i:s", time () );
        $sys_info_array ['bj_time'] = gmdate ( "Y年m月d日 H:i:s", time () + 8 * 3600 );
        $sys_info_array ['server_ip'] = gethostbyname ( $_SERVER ["SERVER_NAME"] );
        $sys_info_array ['software'] = $_SERVER ["SERVER_SOFTWARE"];
        $sys_info_array ['port'] = $_SERVER ["SERVER_PORT"];
        $sys_info_array ['admin'] = $_SERVER ["SERVER_ADMIN"];
        $sys_info_array ['diskfree'] = intval ( diskfreespace ( "." ) / (1024 * 1024) ) . 'Mb';
        $sys_info_array ['current_user'] = 'admin';
        $sys_info_array ['timezone'] = date_default_timezone_get();
        $data=Database::Query("select version()")->fetchAll();
        $sys_info_array ['mysql_version'] = $data[0]['version()'];
        Template::Assign('sys_info',$sys_info_array);
        Template::Display('other/server.html');
    }
}
?>